import { get } from "./request";

export function getArtistList(area, type, initial) {
  let url = "/artist/list";
  let params = { limit: 100 };
  if (area === -1 && type === 1) {
    url = "/top/artists";
  } else {
    if (area === -1) {
      //推荐里面为type2或者其它情况
      params = { limit: 100, cat: 5001 };
    } else {
      //非推荐里面
      params = {
        type,
        area,
        initial,
        limit: 100,
      };
    }
  }
  // console.log("url:", url, "params:", params);

  return get(url, params);
}
